﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="setTheme.aspx.cs" Inherits="_framework_setTheme" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <link rel="stylesheet" type="text/css" href="../_skin/<%=CurrentTheme %>/style/ThemeStyle.css"  />
    
    <style type="text/css">
        html,td,tr,div,p,br
        {
            font-size:9pt;
        }
    </style>
    <script type="text/javascript">
        function Check(ctrl) 
        {
            var inputs = document.all.tags("input");
            for (var i = 0; i < inputs.length; i++) // 遍历页面上所有的 input 
            {
                if (inputs[i].type == "radio") {
                    if (inputs[i].checked) {
                        inputs[i].checked = false;
                    }
                }
            }
            ctrl.checked = true;
        }
    </script>
</head>
<body class="themeBgBody">
    <form id="form1" runat="server">
    <div>
    
    </div>
    <asp:DataList ID="DataList1" DataKeyField="ThemeName" runat="server" CellPadding="6" 
        RepeatColumns="3" onitemdatabound="DataList1_ItemDataBound">
        <ItemTemplate>
            <table border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td align="center">
            <asp:Image ID="Image1" BorderWidth="1" Width="150" ToolTip='<%#DataBinder.Eval(Container.DataItem,"Name")%>' Height="100" runat="server" ImageUrl='<%#DataBinder.Eval(Container.DataItem,"ImageSrc")%>'/>
                    </td>
                </tr>
                <tr>
                    <td style="display:none">
                        <asp:TextBox ID="txt_ControlType" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"ControlType")%>'></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="center">
            <asp:RadioButton ID="RadioButton1"  onclick="Check(this)" runat="server" GroupName="ttttt" 
                            Text='<%#DataBinder.Eval(Container.DataItem,"Name")%>'/>
                    </td>
                </tr>
            </table>
        </ItemTemplate>
    </asp:DataList>
    <div style="display:none">
    <asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" /></div>
    <script type="text/javascript">
        //--创建按钮
        var P = window.parent, D = P.loadinndlg();
        var returnVal = "";
        window.onload = function() {
            if (P.document.getElementById('btnok') == undefined) {
                P.crebtn("btnok", "确定", btnok);
            }
            else {
                P.rembtn("btnok");
                P.crebtn("btnok", "确定", btnok);
            }
        }
        function btnok() {
            document.getElementById('<%=Button1.ClientID %>').click();
            
        }
    </script>
    </form>
</body>
</html>
